import { getLoginUuid, getSqStatus, signCa } from '@/services/common/api';
import { isNull, showMsg } from '@/utils/utils';

// 获取授权状态
export const getShouqStatus = async() => {
  await getSqStatus().then(res => {
    // 已授权
    if (res.status === 'Y') {

    } else {
      
    }
  }).catch(error => {
    showMsg(error?.data?.message)
  });
}

// 非文案签署接口
export const signForCa = async() => {
  await signCa().then(res => {
    if (res.code === '0') {

    } else {
      showMsg(res?.message);
    }
  }).catch(error => {
    showMsg(error?.data?.message)
  });
}

// 获取客户生成的唯一id
export const getUuid = async() => {
  await getLoginUuid().then(res => {
    if (res.code === '0') {

    } else {
      showMsg(res?.message);
    }
  }).catch(error => {
    showMsg(error?.data?.message)
  });
}